package cn.xy.base.server.enums;

import cn.xy.commons.validator.VerifiedEnum;
import lombok.Getter;

/**
 * SysPermission type字段枚举
 *
 * @author xy
 */
@Getter
public enum PermissionType implements VerifiedEnum {

    /**
     * 目录
     */
    CONTENT(1, "目录"),

    /**
     * 菜单
     */
    MENU(2, "菜单"),

    /**
     * 权限
     */
    PERMISSION(3, "权限");

    /**
     * 类型
     */
    private final int value;

    /**
     * 名称
     */
    private final String name;

    PermissionType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public Object getVerifiedValue() {
        return this.value;
    }
}
